const _ = require("underscore");
const controller = [];

controller.push(require("./indexController"));
/**
 * 加载所有的视图路由
 * @param app
 */
const addRoute = function(app){
    controller.forEach(function(element){
        if(_.isFunction(element)) {
            element.call(this, app);
        }
    });
};

module.exports = addRoute;